#include "dyn_quad_qGauss4.h"

qGauss4::qGauss4(Functor &_func, double _a, double _b)
    : qGauss(_func,_a,_b)
{
    populateVectors();
}

void qGauss4::populateVectors()
{
    weights.set_size(4);
    weights(0) = w2;
    weights(1) = w1;
    weights(2) = w1;
    weights(3) = w2;

    abscissas.set_size(4);
    abscissas(0) = -x2;
    abscissas(1) = -x1;
    abscissas(2) = x1;
    abscissas(3) = x2;
}
